let api = [];
const apiDocListSize = 1
api.push({
    name: 'default',
    order: '1',
    list: []
})
api[0].list.push({
    alias: '3d37b75c07eca9180401252564b30971',
    order: '1',
    link: '账号权限相关',
    desc: '账号权限相关',
    list: []
})
api[0].list[0].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/getGvUserList',
    desc: '获取政府端用户列表',
});
api[0].list[0].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/addGvUser',
    desc: '新增政府端用户',
});
api[0].list[0].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/editGvUser',
    desc: '修改政府端用户信息',
});
api[0].list[0].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/editGvUserStatus',
    desc: '修改政府端用户状态',
});
api[0].list[0].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/editGvUserPwd',
    desc: '修改政府端用户密码',
});
api[0].list[0].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/delGvUser',
    desc: '删除政府端用户',
});
api[0].list[0].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/getGvRoleList',
    desc: '获取政府端角色列表',
});
api[0].list[0].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/addGvRole',
    desc: '新增政府端角色',
});
api[0].list[0].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/editGvRole',
    desc: '修改政府端角色信息',
});
api[0].list[0].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/delGvRole',
    desc: '删除政府端角色',
});
api[0].list[0].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/saveGvUserRole',
    desc: '设置政府端用户角色',
});
api[0].list[0].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/getGvUserMF',
    desc: '获取政府端（包括超管）用户权限下的所有模块功能页面列表',
});
api[0].list[0].list.push({
    order: '13',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/getGvRoleMF',
    desc: '获取政府端角色权限下的所有模块功能页面列表',
});
api[0].list[0].list.push({
    order: '14',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/saveGvRoleMF',
    desc: '保存政府端角色的模块功能权限',
});
api[0].list[0].list.push({
    order: '15',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/getGvModule',
    desc: '获取政府端的模块列表',
});
api[0].list[0].list.push({
    order: '16',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/getBuildModule',
    desc: '获取楼宇企业端的模块列表',
});
api[0].list[0].list.push({
    order: '17',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/getFuncByMid',
    desc: '根据模块id获取功能列表',
});
api[0].list[0].list.push({
    order: '18',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/addModule',
    desc: '新增模块',
});
api[0].list[0].list.push({
    order: '19',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/editModule',
    desc: '修改模块信息',
});
api[0].list[0].list.push({
    order: '20',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/delModule',
    desc: '删除模块',
});
api[0].list[0].list.push({
    order: '21',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/addFunc',
    desc: '新增功能页面',
});
api[0].list[0].list.push({
    order: '22',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/editFunc',
    desc: '修改功能界面信息',
});
api[0].list[0].list.push({
    order: '23',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/delFunc',
    desc: '删除功能界面',
});
api[0].list[0].list.push({
    order: '24',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/getAllAuthority',
    desc: '获取完整权限列表',
});
api[0].list[0].list.push({
    order: '25',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/getAuthorityByFid',
    desc: '获取菜单功能已绑定的资源权限',
});
api[0].list[0].list.push({
    order: '26',
    deprecated: 'false',
    url: 'http://localhost:8000/api/admin/setFuncAuthority',
    desc: '设备菜单功能资源权限',
});
api[0].list.push({
    alias: 'ccb2088b5cb38db4386da54a464ad241',
    order: '2',
    link: '数据分析相关',
    desc: '数据分析相关',
    list: []
})
api[0].list[1].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/getElectData',
    desc: '查询用电数据',
});
api[0].list[1].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/getGasData',
    desc: '查询用气数据',
});
api[0].list[1].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/getWaterData',
    desc: '查询用水数据',
});
api[0].list[1].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/getPetrolData',
    desc: '查询汽油数据',
});
api[0].list[1].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/getDieselData',
    desc: '查询柴油数据',
});
api[0].list[1].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/getTceData',
    desc: '综合能耗用量数据',
});
api[0].list[1].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/getTceIntensity',
    desc: '综合能耗强度数据',
});
api[0].list[1].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/getTceStructure',
    desc: '综合能耗结构数据',
});
api[0].list[1].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/getCo2Data',
    desc: '碳排放数据',
});
api[0].list[1].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/getCo2Intensity',
    desc: '碳排放强度数据',
});
api[0].list[1].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/getCo2Structure',
    desc: '碳排放结构',
});
api[0].list[1].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/getAllScore',
    desc: '获取企业打分详情',
});
api[0].list[1].list.push({
    order: '13',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/getMultiScore',
    desc: '获取所有企业打分详情（单、多项指标）',
});
api[0].list[1].list.push({
    order: '14',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/getGreenScore',
    desc: '绿色荣誉汇总',
});
api[0].list[1].list.push({
    order: '15',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/getCo2Score',
    desc: '碳中和示范汇总',
});
api[0].list[1].list.push({
    order: '16',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/device/collect',
    desc: '设备汇总',
});
api[0].list[1].list.push({
    order: '17',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/retrofit/collect',
    desc: '节能改造项目汇总',
});
api[0].list[1].list.push({
    order: '18',
    deprecated: 'false',
    url: 'http://localhost:8000/api/analysis/getAirParam',
    desc: '查询环境监测各参数数据',
});
api[0].list.push({
    alias: 'cb154c95a5ca634978389c603ee0619a',
    order: '3',
    link: '楼宇审核相关',
    desc: '楼宇审核相关',
    list: []
})
api[0].list[2].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/list',
    desc: '获取楼宇审核列表',
});
api[0].list[2].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/red',
    desc: '审核列表小红帽',
});
api[0].list[2].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/check',
    desc: '审核资料',
});
api[0].list[2].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/info',
    desc: '获取自身的审核资料的审核情况',
});
api[0].list[2].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/submit',
    desc: '提交审核申请',
});
api[0].list[2].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/cancel',
    desc: '取消审核申请',
});
api[0].list[2].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/replace',
    desc: '将线上资料替换覆盖到审核资料',
});
api[0].list[2].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/base',
    desc: '获取楼宇基本信息（审核资料）',
});
api[0].list[2].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/editBase',
    desc: '修改楼宇基础信息',
});
api[0].list[2].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/editFacility',
    desc: '修改楼宇设施信息',
});
api[0].list[2].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/editEnergyNo',
    desc: '修改楼宇能源编号信息',
});
api[0].list[2].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/device',
    desc: '获取楼宇设备数据（审核资料）',
});
api[0].list[2].list.push({
    order: '13',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/addDevice',
    desc: '新增楼宇设备数据',
});
api[0].list[2].list.push({
    order: '14',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/editDevice',
    desc: '修改楼宇设备数据',
});
api[0].list[2].list.push({
    order: '15',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/delDevice',
    desc: '删除楼宇设备数据',
});
api[0].list[2].list.push({
    order: '16',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/energyData',
    desc: '获取楼宇用能数据（年）（审核资料）',
});
api[0].list[2].list.push({
    order: '17',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/addEnergyData',
    desc: '新增楼宇用能数据（年）',
});
api[0].list[2].list.push({
    order: '18',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/editEnergyData',
    desc: '修改楼宇用能数据（年）',
});
api[0].list[2].list.push({
    order: '19',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/delEnergyData',
    desc: '删除楼宇用能数据（年）',
});
api[0].list[2].list.push({
    order: '20',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/table',
    desc: '获取楼宇计量器具（审核资料）',
});
api[0].list[2].list.push({
    order: '21',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/addTable',
    desc: '新增楼宇计量器具',
});
api[0].list[2].list.push({
    order: '22',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/editTable',
    desc: '修改楼宇计量器具',
});
api[0].list[2].list.push({
    order: '23',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/delTable',
    desc: '删除楼宇计量器具',
});
api[0].list[2].list.push({
    order: '24',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/lamp',
    desc: '获取楼宇灯具（审核资料）',
});
api[0].list[2].list.push({
    order: '25',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/addLamp',
    desc: '新增楼宇灯具',
});
api[0].list[2].list.push({
    order: '26',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/editLamp',
    desc: '修改楼宇灯具',
});
api[0].list[2].list.push({
    order: '27',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/delLamp',
    desc: '删除楼宇灯具',
});
api[0].list[2].list.push({
    order: '28',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/retrofit',
    desc: '获取楼宇节能改造记录（审核资料）',
});
api[0].list[2].list.push({
    order: '29',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/addRetrofit',
    desc: '新增楼宇节能改造记录',
});
api[0].list[2].list.push({
    order: '30',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/editRetrofit',
    desc: '修改楼宇节能改造记录',
});
api[0].list[2].list.push({
    order: '31',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/check/delRetrofit',
    desc: '删除楼宇节能改造记录',
});
api[0].list.push({
    alias: 'c6b9a6e030b51d171db5cfc99c4100ea',
    order: '4',
    link: '企业计量点相关',
    desc: '企业计量点相关',
    list: []
})
api[0].list[3].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://localhost:8000/api/bdp/point/page',
    desc: '分页获取计量点',
});
api[0].list[3].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://localhost:8000/api/bdp/point/list/simple',
    desc: '获取所有计量点简要信息',
});
api[0].list[3].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://localhost:8000/api/bdp/point/add',
    desc: '新增计量点',
});
api[0].list[3].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://localhost:8000/api/bdp/point/add/excel',
    desc: '批量录入计量点',
});
api[0].list[3].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://localhost:8000/api/bdp/point/edit',
    desc: '修改计量点信息',
});
api[0].list[3].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://localhost:8000/api/bdp/point/del',
    desc: '删除计量点',
});
api[0].list[3].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://localhost:8000/api/bdp/point/data',
    desc: '获取计量点数据信息',
});
api[0].list[3].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://localhost:8000/api/bdp/point/data/add',
    desc: '新增计量点数据信息',
});
api[0].list[3].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://localhost:8000/api/bdp/point/data/add/excel',
    desc: '批量录入计量点数据信息',
});
api[0].list[3].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://localhost:8000/api/bdp/point/data/edit',
    desc: '修改计量点数据信息',
});
api[0].list[3].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://localhost:8000/api/bdp/point/data/del',
    desc: '删除计量点数据信息',
});
api[0].list[3].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://localhost:8000/api/bdp/point/data/analysis',
    desc: '计量点数据数据分析',
});
api[0].list.push({
    alias: '3c399ecd9ae44b3967bc6052fc6a6dd5',
    order: '5',
    link: '楼宇信息相关',
    desc: '楼宇信息相关',
    list: []
})
api[0].list[4].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/list/base',
    desc: '获取楼宇基础信息列表',
});
api[0].list[4].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/list',
    desc: '获取楼宇账号列表',
});
api[0].list[4].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/qrcode',
    desc: '获取楼宇H5页面二维码',
});
api[0].list[4].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/list/simple',
    desc: '获取所有楼宇列表（简要信息）',
});
api[0].list[4].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/add',
    desc: '新增建筑楼宇账号',
});
api[0].list[4].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/editPwd',
    desc: '修改楼宇账号密码',
});
api[0].list[4].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/resetPwd',
    desc: '重置楼宇账号密码',
});
api[0].list[4].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/del',
    desc: '删除楼宇',
});
api[0].list[4].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/base',
    desc: '获取楼宇基本信息',
});
api[0].list[4].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/editBase',
    desc: '修改楼宇基础信息',
});
api[0].list[4].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/editFacility',
    desc: '修改楼宇设施信息',
});
api[0].list[4].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/editEnergyNo',
    desc: '修改楼宇能源编号信息',
});
api[0].list[4].list.push({
    order: '13',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/editAttach',
    desc: '上传附件',
});
api[0].list[4].list.push({
    order: '14',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/delFile',
    desc: '删除附件',
});
api[0].list[4].list.push({
    order: '15',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/device',
    desc: '获取楼宇设备数据',
});
api[0].list[4].list.push({
    order: '16',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/addDevice',
    desc: '新增楼宇设备数据',
});
api[0].list[4].list.push({
    order: '17',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/editDevice',
    desc: '修改楼宇设备数据',
});
api[0].list[4].list.push({
    order: '18',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/editDeviceEffic',
    desc: '修改楼宇设备数据',
});
api[0].list[4].list.push({
    order: '19',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/delDevice',
    desc: '删除楼宇设备数据',
});
api[0].list[4].list.push({
    order: '20',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/energyData',
    desc: '获取楼宇用能数据',
});
api[0].list[4].list.push({
    order: '21',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/addEnergyData',
    desc: '新增楼宇用能数据',
});
api[0].list[4].list.push({
    order: '22',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/editEnergyData',
    desc: '修改楼宇用能数据',
});
api[0].list[4].list.push({
    order: '23',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/delEnergyData',
    desc: '删除楼宇用能数据（年）',
});
api[0].list[4].list.push({
    order: '24',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/table',
    desc: '获取楼宇计量器具',
});
api[0].list[4].list.push({
    order: '25',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/addTable',
    desc: '新增楼宇计量器具',
});
api[0].list[4].list.push({
    order: '26',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/editTable',
    desc: '修改楼宇计量器具',
});
api[0].list[4].list.push({
    order: '27',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/delTable',
    desc: '删除楼宇计量器具',
});
api[0].list[4].list.push({
    order: '28',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/lamp',
    desc: '获取楼宇灯具',
});
api[0].list[4].list.push({
    order: '29',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/addLamp',
    desc: '新增楼宇灯具',
});
api[0].list[4].list.push({
    order: '30',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/editLamp',
    desc: '修改楼宇灯具',
});
api[0].list[4].list.push({
    order: '31',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/delLamp',
    desc: '删除楼宇灯具',
});
api[0].list[4].list.push({
    order: '32',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/retrofit',
    desc: '获取楼宇节能改造记录',
});
api[0].list[4].list.push({
    order: '33',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/addRetrofit',
    desc: '新增楼宇节能改造记录',
});
api[0].list[4].list.push({
    order: '34',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/editRetrofit',
    desc: '修改楼宇节能改造记录',
});
api[0].list[4].list.push({
    order: '35',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/delRetrofit',
    desc: '删除楼宇节能改造记录',
});
api[0].list[4].list.push({
    order: '36',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/getBuildComment',
    desc: '获取楼宇评论建议列表',
});
api[0].list[4].list.push({
    order: '37',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/msg/red',
    desc: '获取消息小红帽',
});
api[0].list[4].list.push({
    order: '38',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/msg/page',
    desc: '获取消息列表',
});
api[0].list[4].list.push({
    order: '39',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/msg/check',
    desc: '查看消息',
});
api[0].list[4].list.push({
    order: '40',
    deprecated: 'false',
    url: 'http://localhost:8000/api/build/info/msg/del',
    desc: '删除消息',
});
api[0].list.push({
    alias: '7111afde44bf5d792a5bad72fa6ab6f3',
    order: '6',
    link: '通用接口',
    desc: '通用接口',
    list: []
})
api[0].list[5].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://localhost:8000/api/common/getPlatConfig',
    desc: '获取平台配置信息',
});
api[0].list[5].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://localhost:8000/api/common/getBoardRotateTime',
    desc: '获取看板轮换时间',
});
api[0].list.push({
    alias: '6e2f3a7dfff8354f981f18c2be94b603',
    order: '7',
    link: 'h5相关',
    desc: 'H5相关',
    list: []
})
api[0].list[6].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://localhost:8000/api/h5/getBuildData',
    desc: '获取楼宇数据',
});
api[0].list[6].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://localhost:8000/api/h5/comment/submit',
    desc: '提交评论建议',
});
api[0].list.push({
    alias: '58e795bc6bd7e9bf2b948567d4d9caba',
    order: '8',
    link: '首页相关',
    desc: '首页相关',
    list: []
})
api[0].list[7].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://localhost:8000/api/home/gv/getData',
    desc: '政府端数据',
});
api[0].list[7].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://localhost:8000/api/home/build/getData',
    desc: '楼宇企业端数据',
});
api[0].list.push({
    alias: '2db29075135cb44040cb814ec8ef5949',
    order: '9',
    link: '登录相关',
    desc: '登录相关',
    list: []
})
api[0].list[8].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://localhost:8000/api/login',
    desc: '登录',
});
api[0].list[8].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://localhost:8000/api/getUserInfo',
    desc: '获取登录用户信息',
});
api[0].list[8].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://localhost:8000/api/getUserModule',
    desc: '获取用户权限下的模块列表',
});
api[0].list[8].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://localhost:8000/api/getUserFunc',
    desc: '根据模块id获取用户拥有权限的功能列表',
});
api[0].list[8].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://localhost:8000/api/logout',
    desc: '注销登录',
});
api[0].list.push({
    alias: '314008932af1dcd634258a0761d59f5c',
    order: '10',
    link: '开放接口',
    desc: '开放接口',
    list: []
})
api[0].list[9].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://localhost:8000/api/openApi/tce',
    desc: '万元营业收入能耗趋势',
});
api[0].list[9].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://localhost:8000/api/openApi/co2',
    desc: '万元营业收入碳排放趋势',
});
api[0].list[9].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://localhost:8000/api/openApi/energy/tce',
    desc: '能源消费总量趋势',
});
api[0].list[9].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://localhost:8000/api/openApi/perTce',
    desc: '单位建筑面积能耗趋势',
});
api[0].list.push({
    alias: '893ae3c10af45821e039227aeeba1deb',
    order: '11',
    link: '专家评分',
    desc: '专家评分',
    list: []
})
api[0].list[10].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://localhost:8000/api/score/criteria',
    desc: '获取专家评分标准',
});
api[0].list[10].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://localhost:8000/api/score/scoring',
    desc: '专家打分',
});
api[0].list[10].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://localhost:8000/api/score/own',
    desc: '获取自身打分详情',
});
api[0].list[10].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://localhost:8000/api/score/criteria/add',
    desc: '新增专家评分标准',
});
api[0].list[10].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://localhost:8000/api/score/criteria/edit',
    desc: '修改专家评分标准',
});
api[0].list[10].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://localhost:8000/api/score/criteria/del',
    desc: '删除专家评分标准',
});
api[0].list.push({
    alias: 'b6baa717361701525b9f305f5c7ccf8c',
    order: '12',
    link: '独立看板',
    desc: '独立看板',
    list: []
})
api[0].list[11].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://localhost:8000/api/board/single/getBoardData',
    desc: '获取看板总数据',
});
api[0].list[11].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://localhost:8000/api/board/single/build/simple',
    desc: '获取楼宇基础数据',
});
api[0].list[11].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://localhost:8000/api/board/single/getBuildData',
    desc: '获取楼宇数据',
});
api[0].list[11].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://localhost:8000/api/board/single/structure/tce',
    desc: '综合能耗结构',
});
api[0].list[11].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://localhost:8000/api/board/single/tce/intensity',
    desc: '万元营业收入总和能耗',
});
api[0].list[11].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://localhost:8000/api/board/single/co2/intensity',
    desc: '万元营业收入碳排放趋势',
});
api[0].list[11].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://localhost:8000/api/board/single/tce',
    desc: '能源消费总量趋势',
});
api[0].list[11].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://localhost:8000/api/board/single/getHighLightData',
    desc: '单位绿色亮点',
});
api[0].list[11].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://localhost:8000/api/board/single/device/count',
    desc: '设备汇总数据',
});
api[0].list[11].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://localhost:8000/api/board/single/device/data',
    desc: '设备详细信息',
});
api[0].list[11].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://localhost:8000/api/board/single/retrofit/simple',
    desc: '节能改造项目汇总',
});
api[0].list[11].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://localhost:8000/api/board/single/retrofit/data',
    desc: '节能改造项目汇总',
});
api[0].list[11].list.push({
    order: '13',
    deprecated: 'false',
    url: 'http://localhost:8000/api/board/single/getDayAirInfo',
    desc: '查询当日空气质量信息',
});
api[0].list[11].list.push({
    order: '14',
    deprecated: 'false',
    url: 'http://localhost:8000/api/board/single/getCurAirParam',
    desc: '查询当日实时各参数数据',
});
api[0].list[11].list.push({
    order: '15',
    deprecated: 'false',
    url: 'http://localhost:8000/api/board/single/getDayHourParam',
    desc: '查询当日每小时参数趋势数据(噪音)',
});
api[0].list.push({
    alias: '42d15f6d15f0925643654c65330cc094',
    order: '13',
    link: '系统相关',
    desc: '系统相关',
    list: []
})
api[0].list[12].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/getConfigList',
    desc: '获取系统配置列表',
});
api[0].list[12].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/addConfig',
    desc: '新增系统配置',
});
api[0].list[12].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/editConfig',
    desc: '修改系统配置',
});
api[0].list[12].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/delConfig',
    desc: '删除系统配置',
});
api[0].list[12].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/es/list',
    desc: '获取用能系统列表',
});
api[0].list[12].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/es/add',
    desc: '新增用能系统',
});
api[0].list[12].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/es/edit',
    desc: '修改用能系统',
});
api[0].list[12].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/es/del',
    desc: '删除用能系统',
});
api[0].list[12].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/rt/list',
    desc: '获取用节能改造模式类型列表',
});
api[0].list[12].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/rt/add',
    desc: '新增节能改造模式类型',
});
api[0].list[12].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/rt/edit',
    desc: '修改节能改造模式类型',
});
api[0].list[12].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/rt/del',
    desc: '删除节能改造模式类型',
});
api[0].list[12].list.push({
    order: '13',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/dt/list',
    desc: '获取设备类型列表',
});
api[0].list[12].list.push({
    order: '14',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/dt/add',
    desc: '新增设备类型',
});
api[0].list[12].list.push({
    order: '15',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/dt/edit',
    desc: '修改设备类型',
});
api[0].list[12].list.push({
    order: '16',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/dt/del',
    desc: '删除设备类型',
});
api[0].list[12].list.push({
    order: '17',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/energy/list',
    desc: '获取能源列表',
});
api[0].list[12].list.push({
    order: '18',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/energy/list/simple',
    desc: '获取能源列表',
});
api[0].list[12].list.push({
    order: '19',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/energy/add',
    desc: '新增能源',
});
api[0].list[12].list.push({
    order: '20',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/energy/edit',
    desc: '修改能源',
});
api[0].list[12].list.push({
    order: '21',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/energy/del',
    desc: '删除能源',
});
api[0].list[12].list.push({
    order: '22',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/energyPrice/info',
    desc: '获取能管价格信息',
});
api[0].list[12].list.push({
    order: '23',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/energyPrice/page',
    desc: '分页获取能管价格信息',
});
api[0].list[12].list.push({
    order: '24',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/energyPrice/del',
    desc: '删除价格',
});
api[0].list[12].list.push({
    order: '25',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/energyPrice/add',
    desc: '新增价格',
});
api[0].list[12].list.push({
    order: '26',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/energyPrice/edit',
    desc: '修改价格',
});
api[0].list[12].list.push({
    order: '27',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/bt/list',
    desc: '获取楼宇类型列表',
});
api[0].list[12].list.push({
    order: '28',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/bt/add',
    desc: '新增楼宇类型',
});
api[0].list[12].list.push({
    order: '29',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/bt/edit',
    desc: '修改楼宇类型',
});
api[0].list[12].list.push({
    order: '30',
    deprecated: 'false',
    url: 'http://localhost:8000/api/sys/bt/del',
    desc: '删除楼宇类型',
});
api[0].list.push({
    alias: 'error',
    order: '14',
    link: 'error_code_list',
    desc: '错误码列表',
    list: []
})
api[0].list.push({
    alias: 'dict',
    order: '15',
    link: 'dict_list',
    desc: '数据字典',
    list: []
})
api[0].list[14].list.push({
    order: '1',
    deprecated: 'false',
    url: '',
    desc: '时间类型',
});
document.onkeydown = keyDownSearch;
function keyDownSearch(e) {
    const theEvent = e;
    const code = theEvent.keyCode || theEvent.which || theEvent.charCode;
    if (code === 13) {
        const search = document.getElementById('search');
        const searchValue = search.value.toLocaleLowerCase();

        let searchGroup = [];
        for (let i = 0; i < api.length; i++) {

            let apiGroup = api[i];

            let searchArr = [];
            for (let i = 0; i < apiGroup.list.length; i++) {
                let apiData = apiGroup.list[i];
                const desc = apiData.desc;
                if (desc.toLocaleLowerCase().indexOf(searchValue) > -1) {
                    searchArr.push({
                        order: apiData.order,
                        desc: apiData.desc,
                        link: apiData.link,
                        list: apiData.list
                    });
                } else {
                    let methodList = apiData.list || [];
                    let methodListTemp = [];
                    for (let j = 0; j < methodList.length; j++) {
                        const methodData = methodList[j];
                        const methodDesc = methodData.desc;
                        if (methodDesc.toLocaleLowerCase().indexOf(searchValue) > -1) {
                            methodListTemp.push(methodData);
                            break;
                        }
                    }
                    if (methodListTemp.length > 0) {
                        const data = {
                            order: apiData.order,
                            desc: apiData.desc,
                            link: apiData.link,
                            list: methodListTemp
                        };
                        searchArr.push(data);
                    }
                }
            }
            if (apiGroup.name.toLocaleLowerCase().indexOf(searchValue) > -1) {
                searchGroup.push({
                    name: apiGroup.name,
                    order: apiGroup.order,
                    list: searchArr
                });
                continue;
            }
            if (searchArr.length === 0) {
                continue;
            }
            searchGroup.push({
                name: apiGroup.name,
                order: apiGroup.order,
                list: searchArr
            });
        }
        let html;
        if (searchValue === '') {
            const liClass = "";
            const display = "display: none";
            html = buildAccordion(api,liClass,display);
            document.getElementById('accordion').innerHTML = html;
        } else {
            const liClass = "open";
            const display = "display: block";
            html = buildAccordion(searchGroup,liClass,display);
            document.getElementById('accordion').innerHTML = html;
        }
        const Accordion = function (el, multiple) {
            this.el = el || {};
            this.multiple = multiple || false;
            const links = this.el.find('.dd');
            links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown);
        };
        Accordion.prototype.dropdown = function (e) {
            const $el = e.data.el;
            let $this = $(this), $next = $this.next();
            $next.slideToggle();
            $this.parent().toggleClass('open');
            if (!e.data.multiple) {
                $el.find('.submenu').not($next).slideUp("20").parent().removeClass('open');
            }
        };
        new Accordion($('#accordion'), false);
    }
}

function buildAccordion(apiGroups, liClass, display) {
    let html = "";
    if (apiGroups.length > 0) {
        if (apiDocListSize === 1) {
            let apiData = apiGroups[0].list;
            let order = apiGroups[0].order;
            for (let j = 0; j < apiData.length; j++) {
                html += '<li class="'+liClass+'">';
                html += '<a class="dd" href="#_'+order+'_'+apiData[j].order+'_' + apiData[j].link + '">' + apiData[j].order + '.&nbsp;' + apiData[j].desc + '</a>';
                html += '<ul class="sectlevel2" style="'+display+'">';
                let doc = apiData[j].list;
                for (let m = 0; m < doc.length; m++) {
                    let spanString;
                    if (doc[m].deprecated === 'true') {
                        spanString='<span class="line-through">';
                    } else {
                        spanString='<span>';
                    }
                    html += '<li><a href="#_'+order+'_' + apiData[j].order + '_' + doc[m].order + '_' + doc[m].desc + '">' + apiData[j].order + '.' + doc[m].order + '.&nbsp;' + spanString + doc[m].desc + '<span></a> </li>';
                }
                html += '</ul>';
                html += '</li>';
            }
        } else {
            for (let i = 0; i < apiGroups.length; i++) {
                let apiGroup = apiGroups[i];
                html += '<li class="'+liClass+'">';
                html += '<a class="dd" href="#_'+apiGroup.order+'_' + apiGroup.name + '">' + apiGroup.order + '.&nbsp;' + apiGroup.name + '</a>';
                html += '<ul class="sectlevel1">';

                let apiData = apiGroup.list;
                for (let j = 0; j < apiData.length; j++) {
                    html += '<li class="'+liClass+'">';
                    html += '<a class="dd" href="#_'+apiGroup.order+'_'+ apiData[j].order + '_'+ apiData[j].link + '">' +apiGroup.order+'.'+ apiData[j].order + '.&nbsp;' + apiData[j].desc + '</a>';
                    html += '<ul class="sectlevel2" style="'+display+'">';
                    let doc = apiData[j].list;
                    for (let m = 0; m < doc.length; m++) {
                       let spanString;
                       if (doc[m].deprecated === 'true') {
                           spanString='<span class="line-through">';
                       } else {
                           spanString='<span>';
                       }
                       html += '<li><a href="#_'+apiGroup.order+'_' + apiData[j].order + '_' + doc[m].order + '_' + doc[m].desc + '">'+apiGroup.order+'.' + apiData[j].order + '.' + doc[m].order + '.&nbsp;' + spanString + doc[m].desc + '<span></a> </li>';
                   }
                    html += '</ul>';
                    html += '</li>';
                }

                html += '</ul>';
                html += '</li>';
            }
        }
    }
    return html;
}